import request from '@/utils/request'

// 查询小程序注册列表
export function listAppuser(query) {
  return request({
    url: '/device/appuser/list',
    method: 'get',
    params: query
  })
}

// 查询小程序注册详细
export function getAppuser(regId) {
  return request({
    url: '/device/appuser/' + regId,
    method: 'get'
  })
}

// 新增小程序注册
export function addAppuser(data) {
  return request({
    url: '/device/appuser',
    method: 'post',
    data: data
  })
}

// 修改小程序注册
export function updateAppuser(data) {
  return request({
    url: '/device/appuser',
    method: 'put',
    data: data
  })
}

// 删除小程序注册
export function delAppuser(regId) {
  return request({
    url: '/device/appuser/' + regId,
    method: 'delete'
  })
}
